package com.lastproject.ejb.dao;

import java.util.List;

import javax.ejb.Remote;

import com.lastproject.dto.WaitingListDTO;
import com.lastproject.ejb.exceptions.NoPermissionException;

@Remote
public interface WaitingListDAORemote {

	void create(boolean hasPermission, WaitingListDTO entity) throws NoPermissionException;
	void edit(WaitingListDTO entity);
	void remove(WaitingListDTO entity);
	WaitingListDTO findById(Object id);
	public List<WaitingListDTO> getAll();
	public List<WaitingListDTO> getByIdBook(int id);
	public List<WaitingListDTO> getByIdUserIdBook(int idb, int idu);
}
